ScaleMode enum Null safety
视频帧缩放模式,可设置缩放以适应视窗。
Constants
- auto → const ScaleMode
-
自动模式,默认值为
stretchconst ScaleMode(0) - fitWithCropping → const ScaleMode
-
视窗填满优先。
视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。const ScaleMode(2) - fitWithFilling → const ScaleMode
-
视频帧内容全部显示优先。
视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。const ScaleMode(3) - stretch → const ScaleMode
-
对视频帧进行缩放,直至视频帧和视窗分辨率一致为止。这一过程不保证等比缩放。
const ScaleMode(1) -
values
→ const List<
ScaleMode> -
A constant List of the values in this enum, in order of their declaration.
const List<ScaleMode>
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited